package com.edu.service;

import com.edu.dao.ActivitieMapper;
import com.edu.pojo.Activitie;

import java.util.List;

public class ActivitieServiceImpl implements ActivitieService{
    private ActivitieMapper activitieMapper;
    public void setActivitieMapper(com.edu.dao.ActivitieMapper activitieMapper)
    {
        this.activitieMapper=activitieMapper;
    }
    public int addActivitie(Activitie activitie){
        return activitieMapper.addActivitie(activitie);
    }

    public List<Activitie> queryAllActivitie(){
        return activitieMapper.queryAllActivitie();
    }

    public int deleteActivitieById( int id){
        return activitieMapper.deleteActivitieById(id);
    }

    public int updateActivitie(Activitie activitie){
        return  activitieMapper.updateActivitie(activitie);
    }
    public int agreeThesisTitle(int id) {
        return  activitieMapper.agreeThesisTitle(id);
    }

    public int disagreeThesisTitle(int id) {
        return  activitieMapper.disagreeThesisTitle(id);
    }

}
